using SqlSugar;

namespace CaipuGuanliXitong.Models;

public class DailyPurchaseDto
{
    public int Id { get; set; }
    
    public DateTime Date { get; set; }
    
    public int BreakfastMaleCount { get; set; }
    
    public int BreakfastFemaleCount { get; set; }
    
    public int LunchMaleCount { get; set; }
    
    public int LunchFemaleCount { get; set; }
    
    public int DinnerMaleCount { get; set; }
    
    public int DinnerFemaleCount { get; set; }
    
    public List<DailyPurchaseDetailDto> BreakfastDetails { get; set; } = new List<DailyPurchaseDetailDto>();
    
    public List<DailyPurchaseDetailDto> LunchDetails { get; set; } = new List<DailyPurchaseDetailDto>();
    
    public List<DailyPurchaseDetailDto> DinnerDetails { get; set; } = new List<DailyPurchaseDetailDto>();
    
    public List<MenuRecipeDto> MenuRecipes { get; set; } = new List<MenuRecipeDto>();
    
    public decimal BreakfastTotalAmount { get; set; }
    
    public decimal LunchTotalAmount { get; set; }
    
    public decimal DinnerTotalAmount { get; set; }
    
    public decimal TotalAmount { get; set; }
}

public class DailyPurchaseDetailDto
{
    public int Id { get; set; }
    
    public int IngredientId { get; set; }
    
    public string IngredientName { get; set; } = string.Empty;
    
    public string IngredientUnit { get; set; } = string.Empty;
    
    public decimal Quantity { get; set; }
    
    public decimal Price { get; set; }
    
    public decimal TotalAmount { get; set; }
}

public class MenuRecipeDto
{
    public int Id { get; set; }
    
    public string MealType { get; set; } = string.Empty; // 早餐/午餐/晚餐
    
    public string Gender { get; set; } = string.Empty; // 男性/女性
    
    public string RecipeNames { get; set; } = string.Empty; // 菜谱名称
    
    public int Count { get; set; } // 份数
}